﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MYSMRM.Manager.Base;
using MYSMRM.Model;
using MYSMRM.Manager.Interface;
using MYSMRM.Dao.Implement;
using MYSMRM.Dao.Interface;

namespace MYSMRM.Manager.Implement
{
    public class QSOptionManager : ManagerBase<QSOption>, IQSOptionManager
    {
        public QSOptionManager()
        {
            this.CurrentDao = new QSOptionDao();
        }

        public IList<QSOption> LoadAllByPage(out long total, int id, int page, int rows, string order, string sort)
        {
            return ((IQSOptionDao)(this.CurrentDao))
                .LoadAllByPage(out total, id, page, rows, order, sort).ToList();
        }

        public IList<QSOption> LoadAllEnable(int id)
        {
            return ((IQSOptionDao)(this.CurrentDao)).LoadAllEnable(id).ToList();
        }
    }
}
